package com.papers.common.constant;

import java.util.regex.Pattern;

/**
 * 题目常量类
 *
 * @author libo
 * @date 2022/11/11 14:27
 */
public class QuestionConstants {

    /**
     * 题目编码正则
     */
    public static final Pattern QUESTION_CODE_PATTERN = Pattern.compile(".{1,255}");

    /**
     * 题目分数正则
     */
    public static final Pattern QUESTION_SCORE_PATTERN = Pattern.compile("^[+]?\\d{1,10}$");

    /**
     * 题目难度系数正则
     */
    public static final Pattern QUESTION_DIFFICULT__PATTERN = Pattern.compile("^(0(\\.\\d{1,2})?|1(\\.0{1,2})?)$");

}
